# -*- coding=utf-8 -*-

import urllib.request
from selenium import webdriver
import time
url='http://preprdnj.88gongxiang.com/user/api/v1/common/login?mobile=18521331713&code=123456'

for count in range(1,10001):
    # driver = webdriver.Chrome()
    driver = webdriver.PhantomJS()
    driver.maximize_window()
    driver.get(url)

    content = driver.page_source

    driver.close()
    print("时间:" + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + "count" + str(
        count) + "次，访问结果：" + content)
    #print(content)


#url='http://preprdnj.88gongxiang.com/user/api/v1/common/login?mobile=18521331713&code=123456'

#opener=urllib.request.urlopen(url)

#opener_read=opener.read()

#print(opener_read.decode("unicode-escape"))

#print(opener_read.decode("utf-8"))